<%--
  Created by IntelliJ IDEA.
  User: cyliu
  Date: 2022/10/10
  Time: 16:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--引入security标签库--%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <h1>首页</h1>
  <div>
      欢迎：<security:authentication property="principal.username"></security:authentication>

      &nbsp;&nbsp;<a href="${pageContext.request.contextPath}/logout">注销</a>
  </div>
  <a href="${pageContext.request.contextPath}/menu/show_menu">查看菜品</a>
  <a href="${pageContext.request.contextPath}/user/show_user">用户</a>
</body>
</html>
